package com.hxkj.service;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.multipart.MultipartFile;


/**
 * 文件上传接口
 */
public interface FileService {


    /**
     * 普通图片上传
     * @param files
     * @param FilePath
     * @return
     * @throws Exception
     */
    String imgUpload(MultipartFile files, String FilePath) throws Exception;


    /**
     * 百度编辑器图片上传
     * @param file
     * @param filePath
     * @param action
     * @return
     * @throws Exception
     */
    JSONObject ueditorimgupload(MultipartFile file, String filePath, String action) throws Exception;
}
